package com.sophic_tech.hkb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


@Data
@TableName("resource")
public class ResourceModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    private String title;
    private String introduction;
    
    @TableField(value = "resourceURL")
    private String resourceURL;
    
    @TableField(value = "publishUserId")
    private Integer userId;
    
    @TableField(exist = false)
    private UserModel user;
    
    @TableField(value = "isVipOnly")
    private Integer isVipOnly;
    
    private String status;
    private String location;
    
    @TableField(value = "createTime")
    private String createTime;
    
    @TableField(value = "resourceTag")
    private String resourceTag;
}
